package com.cf.enums;

import lombok.Getter;

/**
 * 赛道分组 枚举类型
 */
@Getter
public enum RaceType {

    TYPE_NONE(0, "无分组"),
    ENTERPRISE(1, "企业组"),
    COLLEGE(2, "高校组");

    private Integer id;

    private String name;
    private RaceType(Integer id, String name){
        this.id = id;
        this.name = name;
    }

    public static RaceType valueOf(Integer id){
        switch (id){
            case 1: return ENTERPRISE;
            case 2: return COLLEGE;
            default: return TYPE_NONE;
        }
    }
}
